import request from '@/utils/request'

//查询所有机构列表
export function getOrganizationData(data) {
	return request({
		url:"/pc/system/pc_organization/5_page_find_all",
		method:'post',
		formData:data
	})
}

//获取组织类型
export function getOrganizationType(data) {
	return request({
		url:"/pc/system/pc_organization/8_get_organization_type_list",
		method:'post',
		formData:data
	})
}

//根据类型查询区域
export function getOrganizationDistrict(data) {
	return request({
		url:"/pc/system/pc_organization/6_get_region_list_by_parent_id",
		method:'post',
		formData:data
	})
}

//新增组织机构
export function newAddOrganization(data) {
	return request({
		url:"/pc/system/pc_organization/1_insert",
		method:'post',
		json:data
	})
}

//机构(批量)删除
export function organizationBatchDelete(data) {
	return request({
		url:"/pc/system/pc_organization/3_delete_by_id",
		method:'post',
		formData:data
	})
}